package com.usabb.service;

import com.usabb.api.dto.RoundTypeDTO;
import com.usabb.domain.RoundRelationDO;
import com.ifast.common.base.CoreService;
import com.usabb.enums.BizTypeEnum;
import com.usabb.pojo.vo.AmenityAddVO;

import java.util.List;

/**
 * 
 * <pre>
 * 周边关联表
 * </pre>
 * <small> 2019-08-19 18:03:27 | Aron</small>
 */
public interface RoundRelationService extends CoreService<RoundRelationDO> {

    List<RoundRelationDO> getListBy(final String bizType, final Long bizId);

    List<RoundTypeDTO> getRoundTypeDTOListBy(BizTypeEnum bizTypeEnum, final Long bizId);

    boolean saveOrUpdate(AmenityAddVO addVO);
    boolean saveOrUpdate(String bizType, Long bizId, Long[] roundIds, String[] roundNames, String[] autoDurations);
    boolean deleteBy(final String bizType, final Long bizId);
}
